import App from './App'


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// import store from './store'
//把vuex定义成全局组件
// Vue.prototype.$store = store

// uview
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// #ifdef MP-BAIDU
	Vue.prototype.projectType = '1';
// #endif
// #ifndef MP-BAIDU
	Vue.prototype.projectType = '2';
// #endif

uni.getSystemInfo({
	success: function(e) {
		Vue.prototype.StatusBar = e.statusBarHeight; // 状态栏高度
		
		// #ifndef MP
		if (e.platform == 'android') {
			Vue.prototype.CustomBar = e.statusBarHeight + 50;
		} else {
			Vue.prototype.CustomBar = e.statusBarHeight + 45;
		};
		// #endif
		
		// #ifdef MP-WEIXIN
		let custom = wx.getMenuButtonBoundingClientRect();
		Vue.prototype.Custom = custom;
		Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
		// #endif
		  
		// #ifdef MP-ALIPAY
		Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
		// #endif
	},
	complete: function(e){
	}
})


// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif